<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-bind</title>

</head>
<body>
<div id="app">
<img v-bind:src="imgurl" alt="">
  //效果同下
  <img :src="imgurl" alt="">
</div>
<script src="vue.global.js"></script>

<script>
  const app=Vue.createApp({
    data(){
      return{
        imgurl:'lunbo6.jpg'
      }
    }
  }).mount('#app')
</script>
</body>
</html>
